import {http} from '@/utils/http.js'
//查询推荐/减脂/饮食健康/关注页面--百科文章列表
export const getHomeKnowledge=(data)=>{
	return http.get('/patient/home/knowledge',{params:data})
}

//关注的医生列表
export const getDocList=()=>{
	return http.get('/home/page/doc')
}

//关注操作
export const getLikeDom=(id,type='doc')=>{
	return http.post('/like',{id,type})
}

//查看医生开的处方
export const getConsultPre = (id) =>{
	return http.get(`/patient/consult/prescription/${id}`)
}

// 评价医生
export const getEvaluateDoctor=(data)=>{
	return http.post('/patient/order/evaluate',data)
}